package com.wus.demo2.controller;

import com.wus.common.core.domain.base.Result;
import com.wus.demo1.api.Demo1ApiService;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: API测试
 * @Author: wus
 * @Date: 2024/12/8 23:39
 */
@RequiredArgsConstructor
@RequestMapping("/test")
@RestController
public class TestController {

    private final Logger logger = LoggerFactory.getLogger(TestController.class);

    private final Demo1ApiService demo1ApiService;

    @GetMapping("/hello")
    public Result<String> hello(){
        logger.info("demo2....");
        return demo1ApiService.hello();
    }
}
